<?php
/**
 * DotHerbert
 *
 * @package    objects
 * @subpackage factory
 * @copyright  2009 extreme-programmers
 * @license    http://dotherbert.extreme-programmers.com/license   BSD License
 * @version    $Id: RefProperty.php 51 2009-09-27 20:55:36Z johannes.trink@extreme-programmers.com $
 */

namespace dotherbert\objects\factory\config;

/**
 * Ref property
 *
 * @package    objects
 * @subpackage factory
 * @author     Johannes Trink <johannes.trink@extreme-programmers.com>
 */
class RefProperty extends Property
{
    private $ref;

    /**
     * Constructor
     *
     * @param string $name
     * @param string $ref
     */
    public function __construct($name = null, $ref = null)
    {
        parent::__construct($name);
        $this->ref = $ref;
    }

    /**
     * Set object
     *
     * @param string $ref
     * @return void
     */
    public function setRef($ref)
    {
        $this->ref = $ref;
    }

    /**
     * Get ref
     *
     * @return string
     */
    public function getRef()
    {
        return $this->ref;
    }
}